//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.wsd.smartcarwasher.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;
import java.util.UUID;

@ApiModel("会员卡订单")
public class CardOrder extends Order {
    @ApiModelProperty("会员卡id")
    private Integer cardId;
    @ApiModelProperty("会员卡名称")
    private String cardName;
    @ApiModelProperty("会员卡")
    private Card card;

    private String mobile;

    private String ucId;

    private int isRefund;
    @ApiModelProperty("是否他人代支付，0为正常用户本人支付，1为朋友支付")
    private int isHepaid;
    @ApiModelProperty("待支付的用户id")
    private String heuserId;
    @ApiModelProperty("是否是赠送的")
    private int isSend;

    public int getIsSend() {
        return isSend;
    }

    public void setIsSend(int isSend) {
        this.isSend = isSend;
    }

    public String getHeuserId() {
        return heuserId;
    }

    public void setHeuserId(String heuserId) {
        this.heuserId = heuserId;
    }

    public int getIsHepaid() {
        return isHepaid;
    }

    public void setIsHepaid(int isHepaid) {
        this.isHepaid = isHepaid;
    }



    public int getIsRefund() {
        return isRefund;
    }

    public void setIsRefund(int isRefund) {
        this.isRefund = isRefund;
    }

    public String getUcId() {
        return ucId;
    }

    public void setUcId(String ucId) {
        this.ucId = ucId;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }



    private List<UserCard> userCardList;

    public CardOrder() {
    }

    public CardOrder(Card card) {
        this.setOrderPrice(card.getOriginPrice());
        this.setPayPrice(card.getPrice());
        this.cardId = card.getId();
        this.ucId =UUID.randomUUID().toString().replaceAll("-","").toUpperCase();
    }

    public List<UserCard> getUserCardList() {
        return userCardList;
    }

    public void setUserCardList(List<UserCard> userCardList) {
        this.userCardList = userCardList;
    }

    public Integer getCardId() {
        return this.cardId;
    }

    public void setCardId(Integer cardId) {
        this.cardId = cardId;
    }

    public String getCardName() {
        return this.cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

    public Card getCard() {
        return this.card;
    }

    public void setCard(Card card) {
        this.card = card;
    }
}
